package com.eudon.design_pattern.structural.proxy.static_proxy;

import com.eudon.design_pattern.structural.proxy.Request;

import java.util.List;

/**
 * @author eudon
 * @description 使用示例
 * @date 2025/9/1
 * @email syd19970616@gmail.com
 * @address <a href="https://gitee.com/eudon">Gitee</a>
 */
public class Use {
    public static void main(String[] args) {
        UserControllerCacheProxy proxy = new UserControllerCacheProxy();
        List<String> orders = proxy.queryOrder(new Request(1L, true));
        System.out.println(orders);

        orders = proxy.queryOrder(new Request(1L, false));
        System.out.println(orders);
    }
}
